<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
	
	<ui:param name="pageViewBean" value="#{commonContentViewBean}" />
	
	<h:form>
		<p:fieldset legend="用户详细信息" >
			<h:panelGrid columns="2" >
				<h:panelGroup style="float: right;">
					<h:outputText value="用户编号：" />
				</h:panelGroup>
				<h:panelGroup style="float: left;">
					<h:outputText value="#{pageViewBean.userCode}" />
				</h:panelGroup>
				<h:panelGroup style="float: right;">
					<h:outputText value="用户真实姓名：" />
				</h:panelGroup>
				<h:panelGroup style="float: left;">
					<h:outputText value="#{pageViewBean.userRealName}" />
				</h:panelGroup>
				<h:panelGroup style="float: right;">
					<h:outputText value="性别：" />
				</h:panelGroup>
				<h:panelGroup style="float: left;">
					<h:outputText
						value="#{pageViewBean.userSex == ''?'未知':(pageViewBean.userSex == '0'?'男':'女')}" />
				</h:panelGroup>
				<h:panelGroup style="float: right;">
					<h:outputText value="出生日期：" />
				</h:panelGroup>
				<h:panelGroup style="float: left;">
					<h:outputText value="#{pageViewBean.userBirthday}" >
					</h:outputText>
					<!-- <f:convertDateTime pattern="dd/MM/yyyy"/> -->
				</h:panelGroup>

				<h:panelGroup style="float: right;">
					<h:outputText value="警号：" />
				</h:panelGroup>
				<h:panelGroup style="float: left;">
					<h:outputText value="#{pageViewBean.userPoliceNum}" />
				</h:panelGroup>
				<h:panelGroup style="float: right;">
					<h:outputText value="手机号码：" />
				</h:panelGroup>
				<h:panelGroup style="float: left;">
					<h:outputText value="#{pageViewBean.userMobile}" />
				</h:panelGroup>
				<h:panelGroup style="float: right;">
					<h:outputText value="身份证号：" />
				</h:panelGroup>
				<h:panelGroup style="float: left;">
					<h:outputText value="#{pageViewBean.userIcardId}" />
				</h:panelGroup>
				<h:panelGroup style="float: right;">
					<h:outputText value="上级组织机构名称：" />
				</h:panelGroup>
				<h:panelGroup style="float: left;">
					<h:outputText value="#{pageViewBean.orgName}" />
				</h:panelGroup>
			</h:panelGrid>

		</p:fieldset>

		<h:panelGroup style="float: right;">
			<center><p:commandButton title="关闭" type="button"
				onclick="#{commonContentViewBean.id}_dialog.hide();"
				image="./img/icons/cancel.png" value="关闭" style="margin:5px;">
			</p:commandButton></center>
		</h:panelGroup>
	</h:form>
</ui:composition>